<template>
  <BaseContainer>
    <aplid-base-crud ref="crud" class="w-100"  v-bind="{...props.confog,...$attrs }" >
      <template v-slot:ArchivesDialog="{ row, show }">
        <Archives @refresh="handleRefresh" @refreshPage="handleRefreshPage" @rechange="handleOperate"
          :api="confog.api" :key="show" :nowRowData="row"></Archives>
      </template>
    </aplid-base-crud>
  </BaseContainer>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import Archives from '@/views/datacenter/basicData/practitioner/Archives/index.vue'

type Props = {
  listType?:any,
  confog?:any
}
let props = withDefaults(defineProps<Props>(),{
  listType:'evaluator',
  confog:{}
})
const crud = ref()
const dialogVisible = ref(false)
const handleRefresh = (query, visible = false) => {
  dialogVisible.value = visible
  nextTick(() => {
    crud.value.refreshChange(query)
  })
}
const handleOperate = (type, row, title) => {
  nextTick(() => {
    crud.value.handleOperate(type, row, title)
  })
}
const handleRefreshPage = () => {
  nextTick(() => {
    crud.value.refreshChange({}, true)
  })
}


</script>

<style scoped></style>
